import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getPage = {
  getindex(params) {
    return axios.post(`${base.bd}/admin/page/index`, qs.stringify(params));
  },
  changeindex(params) {
    return axios.post(`${base.bd}/admin/page/saveedit`, qs.stringify(params));
  },
  change_shop(params) {
    return axios.post(`${base.bd}/admin/page/add_product`, qs.stringify(params));
  },
  del_shop(params) {
    return axios.post(`${base.bd}/admin/page/del_product`, qs.stringify(params));
  },
  get_sign_gift(params) {
    return axios.post(`${base.bd}/admin/config/lists`, qs.stringify(params));
  },
  setting_sign_gigt(params) {
    return axios.post(`${base.bd}/admin/config/saveedit`, qs.stringify(params));
  },
  sel_sign_type(params) {
    return axios.post(`${base.bd}/admin/sign_in/reward_type`, qs.stringify(params));
  },
  get_page_coupon(params) {
    return axios.post(`${base.bd}/admin/packet/my_new_packet`, qs.stringify(params));
  },
  edit_coupon(params) {
    return axios.post(`${base.bd}/admin/packet/new_packet`, qs.stringify(params));
  },
  del_coupon(params) {
    return axios.post(`${base.bd}/admin/packet/cancel_new_packet`, qs.stringify(params));
  },
  limit_coupon_lev(params) {
    return axios.post(`${base.bd}/admin/packet/lock_rating`, qs.stringify(params));
  },
  limit_coupon_open(params) {
    return axios.post(`${base.bd}/admin/packet/lock_open`, qs.stringify(params));
  },
  //商户
  get_merchantlist(params) {
    return axios.post(`${base.bd}/admin/supplier_page/index`, qs.stringify(params));
  },
  edit_merchantlist(params) {
    return axios.post(`${base.bd}/admin/supplier_page/saveedit`, qs.stringify(params));
  },
  add_merchantlist(params) {
    return axios.post(`${base.bd}/admin/supplier_page/add_supplier`, qs.stringify(params));
  },
  del_merchantlist(params) {
    return axios.post(`${base.bd}/admin/supplier_page/del_supplier`, qs.stringify(params));
  },
  get_memberlist(params) {
    //得到
    return axios.post(`${base.bd}/admin/page/vip`, qs.stringify(params));
  },
  save_memberlist(params) {
    //保存背景图片和背景图
    return axios.post(`${base.bd}/admin/config/saveedit`, qs.stringify(params));
  },
  //生活缴费
  get_lifelist(params) {
    return axios.post(`${base.bd}/admin/juhe_recharge/lists`, qs.stringify(params));
  },
  del_lifelist(params) {
    return axios.post(`${base.bd}/admin/juhe_recharge/del`, qs.stringify(params));
  },
  //公排
  get_platoonlist(params) {
    return axios.post(`${base.bd}/admin/platoon/lists`, qs.stringify(params));
  },
  //后台公排点位详情
  get_platoon_detail(params) {
    return axios.post(`${base.bd}/admin/platoon/edit`, qs.stringify(params));
  },

  // 公排奖励
  get_platoon_reward(params) {
    return axios.post(`${base.bd}/admin/platoon_team/lists`, qs.stringify(params));
  },
  // 添加公排奖励设置
  add_platoon_reward(params) {
    return axios.post(`${base.bd}/admin/platoon_team/saveadd`, qs.stringify(params));
  },
  // 单个公排奖励
  get_single_platoon_reward(params) {
    return axios.post(`${base.bd}/admin/platoon_team/edit`, qs.stringify(params));
  },
  // 单个保存公排奖励
  save_platoon_reward(params) {
    return axios.post(`${base.bd}/admin/platoon_team/saveedit`, qs.stringify(params));
  },
  // 删除公排奖励
  del_platoon_reward(params) {
    return axios.post(`${base.bd}/admin/platoon_team/del`, qs.stringify(params));
  },
  get_tour_price(params) {
    return axios.post(`${base.bd}/admin/tour_price/lists`, qs.stringify(params));
  },
  add_tour_price(params) {
    return axios.post(`${base.bd}/admin/tour_price/saveadd`, qs.stringify(params));
  },
  edit_tour_price(params) {
    return axios.post(`${base.bd}/admin/tour_price/saveedit`, qs.stringify(params));
  },
  del_tour_price(params) {
    return axios.post(`${base.bd}/admin/tour_price/del`, qs.stringify(params));
  },
  get_triplist(params) {
    return axios.post(`${base.bd}/admin/tour_trip/lists`, qs.stringify(params));
  },
  add_triplist(params) {
    return axios.post(`${base.bd}/admin/tour_trip/saveadd`, qs.stringify(params));
  },
  edit_triplist(params) {
    return axios.post(`${base.bd}/admin/tour_trip/saveedit`, qs.stringify(params));
  },
  del_triplist(params) {
    return axios.post(`${base.bd}/admin/tour_trip/del`, qs.stringify(params));
  },
  del_tripshop(params) {
    return axios.post(`${base.bd}/admin/page/del_product_tour`, qs.stringify(params));
  },
  change_shopsort(params) {
    return axios.post(`${base.bd}/admin/page/hot_sort`, qs.stringify(params));
  },

  //图库功能
  pic_get_cate(params) {
    return axios.post(`${base.bd}/admin/gallery_cate/lists`, qs.stringify(params));
  },
  pic_add_cate(params) {
    return axios.post(`${base.bd}/admin/gallery_cate/saveadd`, qs.stringify(params));
  },
  pic_rename_cate(params) {
    return axios.post(`${base.bd}/admin/gallery_cate/saveedit`, qs.stringify(params));
  },
  pic_del_cate(params) {
    return axios.post(`${base.bd}/admin/gallery_cate/del`, qs.stringify(params));
  },
  pic_get_list(params) {
    return axios.post(`${base.bd}/admin/gallery/lists`, qs.stringify(params));
  },
  pic_upload(params) {
    return axios.post(`${base.bd}/admin/gallery/index`, qs.stringify(params));
  },
  pic_move(params) {
    return axios.post(`${base.bd}/admin/gallery/mobile`, qs.stringify(params));
  },
  pic_del_list(params) {
    return axios.post(`${base.bd}/admin/gallery/del`, qs.stringify(params));
  },
  page_add_lesson(params) {
    return axios.post(`${base.bd}/admin/page/add_lesson`, qs.stringify(params));
  },
  page_del_lesson(params) {
    return axios.post(`${base.bd}/admin/page/del_lesson`, qs.stringify(params));
  },
  page_sort_lesson(params) {
    return axios.post(`${base.bd}/admin/page/sort_lesson`, qs.stringify(params));
  },
  //广告列表
  get_advert_lists(params) {
    return axios.post(`${base.bd}/admin/advert/lists`, qs.stringify(params));
  },
  advert_saveadd(params) {
    return axios.post(`${base.bd}/admin/advert/saveadd`, qs.stringify(params));
  },
  advert_edit(params) {
    return axios.post(`${base.bd}/admin/advert/edit`, qs.stringify(params));
  },
  advert_saveedit(params) {
    return axios.post(`${base.bd}/admin/advert/saveedit`, qs.stringify(params));
  },
  advert_del(params) {
    return axios.post(`${base.bd}/admin/advert/del`, qs.stringify(params));
  },

  //直播
  get_livelist(params) {
    return axios.post(`${base.bd}/admin/live/lists`, qs.stringify(params));
  },
  edit_livelist(params) {
    return axios.post(`${base.bd}/admin/live/saveedit`, qs.stringify(params));
  },
  single_livelist(params) {
    return axios.post(`${base.bd}/admin/live/edit`, qs.stringify(params));
  },
  //直播申请
  get_liveapply(params) {
    return axios.post(`${base.bd}/admin/live_application/lists`, qs.stringify(params));
  },
  edit_liveapply(params) {
    return axios.post(`${base.bd}/admin/live_application/saveedit`, qs.stringify(params));
  },
  check_liveapply(params) {
    return axios.post(`${base.bd}/admin/live_application/savecheck`, qs.stringify(params));
  },
  del_liveapply(params) {
    return axios.post(`${base.bd}/admin/live_application/del`, qs.stringify(params));
  },
  get_livepresent(params) {
    return axios.post(`${base.bd}/admin/live_gift/lists`, qs.stringify(params));
  },
  add_livepresent(params) {
    return axios.post(`${base.bd}/admin/live_gift/saveadd`, qs.stringify(params));
  },
  edit_livepresent(params) {
    return axios.post(`${base.bd}/admin/live_gift/saveedit`, qs.stringify(params));
  },
  del_livepresent(params) {
    return axios.post(`${base.bd}/admin/live_gift/del`, qs.stringify(params));
  },
  get_liveorder(params) {
    return axios.post(`${base.bd}/admin/live_gift_order/lists`, qs.stringify(params));
  },
  get_live_recommend(params) {
    return axios.post(`${base.bd}/admin/live/live_recommend`, qs.stringify(params));
  },
  get_live_file(params) {
    return axios.post(`${base.bd}/admin/live/live_video`, qs.stringify(params));
  },
  edit_reply_isrecommend(params) {
    return axios.post(`${base.bd}/admin/live/video_saveedit`, qs.stringify(params));
  },
  add_reply(params) {
    return axios.post(`${base.bd}/admin/live/video_saveadd`, qs.stringify(params));
  },
  del_reply(params) {
    return axios.post(`${base.bd}/admin/live/video_del`, qs.stringify(params));
  },
  get_waterman(params) {
    return axios.post(`${base.bd}/admin/waterman/lists`, qs.stringify(params));
  },
  add_waterman(params) {
    return axios.post(`${base.bd}/admin/waterman/saveadd`, qs.stringify(params));
  },
  single_waterman(params) {
    return axios.post(`${base.bd}/admin/waterman/edit`, qs.stringify(params));
  },
  edit_waterman(params) {
    return axios.post(`${base.bd}/admin/waterman/saveedit`, qs.stringify(params));
  },
  del_waterman(params) {
    return axios.post(`${base.bd}/admin/waterman/del`, qs.stringify(params));
  },

  get_restriction(params) {
    return axios.post(`${base.bd}/admin/restriction/lists`, qs.stringify(params));
  },
  save_restriction(params) {
    return axios.post(`${base.bd}/admin/restriction/saveedit`, qs.stringify(params));
  },
  //骑手审核
  get_checklist(params) {
    return axios.post(`${base.bd}/admin/rider/check_lists`, qs.stringify(params));
  },
  save_checklist(params) {
    return axios.post(`${base.bd}/admin/rider/savecheck`, qs.stringify(params));
  },
  del_checklist(params) {
    return axios.post(`${base.bd}/admin/rider/check_del`, qs.stringify(params));
  },
  //回放评论管理
  get_commentlist(params) {
    return axios.post(`${base.bd}/admin/live_comment/lists`, qs.stringify(params));
  },
  add_commentlist(params) {
    return axios.post(`${base.bd}/admin/live_comment/saveadd`, qs.stringify(params));
  },
  edit_commentlist(params) {
    return axios.post(`${base.bd}/admin/live_comment/saveedit`, qs.stringify(params));
  },
  del_commentlist(params) {
    return axios.post(`${base.bd}/admin/live_comment/del`, qs.stringify(params));
  },

  //index 新首页接口
  getIndexLists(params) {
    return axios.post(`${base.bd}/admin/theme/lists`, qs.stringify(params));
  },
  addIndexListModule(params) {
    return axios.post(`${base.bd}/admin/theme/saveadd`, qs.stringify(params));
  },
  getEditIndexListItem(params) {
    return axios.post(`${base.bd}/admin/theme/edit`, qs.stringify(params));
  },
  editPageIndexListItem(params) {
    return axios.post(`${base.bd}/admin/theme/saveedit`, qs.stringify(params));
  },
  delPageIndexListItem(params) {
    return axios.post(`${base.bd}/admin/theme/del`, qs.stringify(params));
  },
  getIndexModules(params) {
    return axios.post(`${base.bd}/admin/theme/module`, qs.stringify(params));
  },
  copyIndexModules(params) {
    return axios.post(`${base.bd}/admin/theme/copy`, qs.stringify(params));
  },
  setindexHome(params) {
    return axios.post(`${base.bd}/admin/theme/is_home`, qs.stringify(params));
  },
  //地址
  get_addresslist(params) {
    return axios.post(`${base.bd}/admin/ad/lists`, qs.stringify(params));
  },
  add_addresslist(params) {
    return axios.post(`${base.bd}/admin/ad/saveadd`, qs.stringify(params));
  },
  edit_addresslist(params) {
    return axios.post(`${base.bd}/admin/ad/saveedit`, qs.stringify(params));
  },
  del_addresslist(params) {
    return axios.post(`${base.bd}/admin/ad/del`, qs.stringify(params));
  },
  get_footprintlist(params) {
    return axios.post(`${base.bd}/admin/footprint/lists`, qs.stringify(params));
  },
  del_footprintlist(params) {
    return axios.post(`${base.bd}/admin/footprint/del`, qs.stringify(params));
  },
  get_footprint_type(params) {
    return axios.post(`${base.bd}/admin/footprint/footprint_type`, qs.stringify(params));
  },
  addBigPiclink(params) {
    //上传大图显示的图片
    return axios.post(`${base.bd}/admin/product/big_piclink_product`, qs.stringify(params));
  },

  //语言包
  get_languagetype(params) {
    return axios.post(`${base.bd}/admin/language/lists`, qs.stringify(params));
  },
  add_languagetype(params) {
    return axios.post(`${base.bd}/admin/language/saveadd`, qs.stringify(params));
  },
  edit_languagetype(params) {
    return axios.post(`${base.bd}/admin/language/saveedit`, qs.stringify(params));
  },
  del_languagetype(params) {
    return axios.post(`${base.bd}/admin/language/del`, qs.stringify(params));
  },
  update_language(params) {
    return axios.post(`${base.bd}/admin/language_info/updates`, qs.stringify(params));
  },
  get_languagelist(params) {
    return axios.post(`${base.bd}/admin/language_info/lists`, qs.stringify(params));
  },
  add_languagelista(params) {
    return axios.post(`${base.bd}/admin/language_info/saveadd`, qs.stringify(params));
  },
  edit_languagelist(params) {
    return axios.post(`${base.bd}/admin/language_info/saveedit`, qs.stringify(params));
  },
  del_languagelist(params) {
    return axios.post(`${base.bd}/admin/language_info/del`, qs.stringify(params));
  },
  language_excel_show_title(params) {
    return axios.post(`${base.bd}/admin/language_excel/show_title`, qs.stringify(params));
  },
  language_excel_row_one(params) {
    return axios.post(`${base.bd}/admin/language_excel/excel_row_one`, qs.stringify(params));
  },
  language_excel_get_sheet(params) {
    return axios.post(`${base.bd}/admin/language_excel/excel_get_sheet`, qs.stringify(params));
  },
  juhe_recharge_recharge(params) {
    return axios.post(`${base.bd}/admin/juhe_recharge/recharge`, qs.stringify(params));
  },
  getplanelists(params) {
    return axios.post(`${base.bd}/admin/plane/lists`, qs.stringify(params));
  },
  edit_planelists(params) {
    return axios.post(`${base.bd}/admin/plane/saveedit`, qs.stringify(params));
  },

  get_video_traffic(params) {
    return axios.post(`${base.bd}/admin/flow/lists`, qs.stringify(params));
  },
  add_video_traffic(params) {
    return axios.post(`${base.bd}/admin/flow/saveadd`, qs.stringify(params));
  },
  get_video_userecord(params) {
    return axios.post(`${base.bd}/admin/flow/flow_record`, qs.stringify(params));
  },
  local_gallery_lists(params) {
    return axios.post(`${base.bd}/admin/local_gallery/lists`, qs.stringify(params));
  },
  local_gallery_del(params) {
    return axios.post(`${base.bd}/admin/local_gallery/del`, qs.stringify(params));
  },
  get_activity_list(params) {
    return axios.post(`${base.bd}/admin/friends_activities/lists`, qs.stringify(params));
  },
  single_activity_list(params) {
    return axios.post(`${base.bd}/admin/friends_activities/edit`, qs.stringify(params));
  },
  add_activity_list(params) {
    return axios.post(`${base.bd}/admin/friends_activities/saveadd`, qs.stringify(params));
  },
  edit_activity_list(params) {
    return axios.post(`${base.bd}/admin/friends_activities/saveedit`, qs.stringify(params));
  },
  del_activity_list(params) {
    return axios.post(`${base.bd}/admin/friends_activities/del`, qs.stringify(params));
  },
};
export default getPage;
